home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.1 KB | 36 lines | [TEXT/GEOL] |
- Item 8319371 8-Oct-90 09:22PDT
-
- From: MOOF Rollin, Keith A
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: RE>Auto open old dialog u
-
- Attn: Gateway to Internet/BITNET/UUC
- SentBy: Keith Rollin
- Reply to: RE>Auto open old dialog upon s
- Mark,
-
- You ask,
-
- > I want the "open old" dialog to appear automatically when my application
- > starts up, and also when the last open document is closed. I can't seem
- > to figure out a way to do it. Any ideas?
-
- A way to do this is shown in TApplication.HandleFinderRequest. In
- IYourApplication, set fLaunchWithNewDocument to FALSE, and execute
-
- aCommand := DoMenuCommand(cOpen)
- IF aCommand <> NIL THEN
- PostCommand(aCommand);
-
- That handles the "when I'm starting up" case. To handle the "when the last
- document is closed" case, override TApplication.DeleteDocument. Call the
- inherited method, then check gDocList. If it is empty, do the DoMenuCommand
- thing again.
-
- - Keith Rollin
- - Apple Developer Technical Support
-
-
-